{extend name="layout/base"}

{block name="content"}
<header class="header">
    <nav class="fund-search">
        <form class="" action="{:url('business/index')}" method="get">
            <input type="hidden" name="brand_id" value="{$brand_id|default=''}">
            <input type="hidden" name="area_id" value="{$area_id|default=''}">
            <input id="secinput" name="keywords" type="text" placeholder="输入产品名称进行搜索" autocomplete="off">
            <span class="fund-search-cancel search-btn">搜索</span>
        </form>
    </nav>
    <div class="area">
        <div class="area-box">
            <a href="{:url('business/index', ['brand_id' => $brand_id, 'area_id' => 0])}" {if condition="!isset($area_id)"} class="red" {/if}>全部</a>
            {volist name="area" id="v" key="k"}
            <a href="{:url('business/index', ['area_id' => $v['id'], 'brand_id' => $brand_id])}" {if condition="(isset($area_id) && $area_id eq $v['id'])"}class="red"{/if}>{$v.name}</a>
            {/volist}
        </div>
    </div>
</header>
{volist name="list" id="v"}
<div class="company-item" id="wrapper">
    <a href="{:url('business/info', ['id' => $v['id']])}"><img src="{$v.logo}" alt="" style="width: 8rem;height: 4rem;"></a>
    <span style="font-weight: bold; left: 8.5rem;">{$v.name}</span>
    <a class="more" href="{:url('business/info', ['id' => $v['id']])}">商家详情</a>
</div>
{/volist}

<div id="pullUp" style="display:none; text-align: center;">
    <span class="pullUpLabel"></span>
</div>
{/block}

{block name="footer"}
{include file="common/footer" /}
{/block}
